﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace webAppDemo
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var items = new List<Tuple<string, string, string>>();
            items.Add(new Tuple<string, string, string>("uno", "nombre", "cesar"));
            items.Add(new Tuple<string, string, string>("uno", "apellido", "valderrama"));
            items.Add(new Tuple<string, string, string>("dos", "elemento", "valor"));


            var clientes = new List<CLiente>();
            clientes.Add(new CLiente() { Nombre = "maria", Apellido = "test" });

            clientes.Add(new CLiente() { Nombre = "juan", Apellido = "test" });

            

            var hel = new HtmlReportingService();


            

            hel.BuildH(this.RadPane1, 
                items,
                c => c.Item1,
                c => c.Item2,
                LiteralContent:  hel.BuildField);
            //hel.BuildH(this.RadPane1, items, c=)
        }
        internal class CLiente
        {
            public string Nombre { get; set; }
            public string Apellido { get; set; }
        }
    }
}

